package com.jtpay.sdk.jtpay.basepay;

import android.content.Context;

import com.jtpay.sdk.jtpay.basepay.IPay;

/**
 * Created by Administrator on 2017/5/25.
 */

public abstract class UnifiedPay implements IPay {
    protected Context mContext;

    private String mContent;

    protected CallBack mCallBack;

    public UnifiedPay(String content, Context context) {
        mContent = content;
        mContext = context;
    }

    public String getContent() {
        return mContent;
    }

    public void setContent(String content) {
        mContent = content;
    }

    public interface CallBack{
        void prepareLeave();
    }

    protected void prepareLeave(){
        if (mCallBack != null) {
            mCallBack.prepareLeave();
        }
    }
}
